package com.ssm.service;

import com.ssm.dao.ManagerMapper;
import com.ssm.pojo.Manager;

import java.util.List;

public class ManagerServiceImpl implements ManagerService{
    private ManagerMapper managerMapper;

    public void setManagerMapper(ManagerMapper managerMapper) {
        this.managerMapper = managerMapper;
    }

    @Override
    public int addManager(Manager manager) {
        return managerMapper.addManager(manager);
    }

    @Override
    public int deleteManager(int managerId) {
        return managerMapper.deleteManager(managerId);
    }

    @Override
    public int updateManager(Manager manager) {
        return managerMapper.updateManager(manager);
    }

    @Override
    public List queryAllManger() {
        return managerMapper.queryAllManger();
    }

    @Override
    public Manager queryMangerById(int managerId) {
        return managerMapper.queryMangerById(managerId);
    }

    @Override
    public int updateManagerPassword(Manager manager) {
        return managerMapper.updateManagerPassword(manager);
    }
}
